<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html>
 <head>
<base href="<%=basePath%>">

<title>My JSP 'AfterLogin.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="<%=basePath%>js/left.js"></script>
 <style type="text/css">
BODY {
	MARGIN: 0px
}

P {
	MARGIN: 0px
}

BODY {
	COLOR: #000;
	BACKGROUND-COLOR: #fff
}

BODY {
	FONT-SIZE: 12px;
	LINE-HEIGHT: 150%;
	FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"
}

TABLE {
	FONT-SIZE: 12px;
	LINE-HEIGHT: 150%;
	FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"
}

INPUT {
	FONT-SIZE: 12px;
	FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"
}

SELECT {
	FONT-SIZE: 12px;
	FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"
}

TEXTAREA {
	FONT-SIZE: 12px;
	FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif"
}

A:link {
	COLOR: #036;
	TEXT-DECORATION: none
}

A:visited {
	COLOR: #036;
	TEXT-DECORATION: none
}

A:hover {
	COLOR: #f60;
	TEXT-DECORATION: underline
}

A.menuChild:link {
	COLOR: #036;
	TEXT-DECORATION: none
}

A.menuChild:visited {
	COLOR: #036;
	TEXT-DECORATION: none
}

A.menuChild:hover {
	COLOR: #f60;
	TEXT-DECORATION: underline
}

A.menuParent:link {
	COLOR: #000;
	TEXT-DECORATION: none
}

A.menuParent:visited {
	COLOR: #000;
	TEXT-DECORATION: none
}

A.menuParent:hover {
	COLOR: #f60;
	TEXT-DECORATION: none
}

TABLE.position {
	WIDTH: 100%
}

TR.position {
	HEIGHT: 25px;
	BACKGROUND-COLOR: #f4f7fc
}

TD.position {
	BORDER-RIGHT: #adceff 1px solid;
	PADDING-LEFT: 20px;
	BORDER-BOTTOM: #adceff 1px solid
}

TABLE.listTable {
	WIDTH: 98%;
	BACKGROUND-COLOR: #b1ceee
}

TR.listHeaderTr {
	FONT-WEIGHT: bold;
	HEIGHT: 25px;
	BACKGROUND-COLOR: #ebf4fd;
	TEXT-ALIGN: center
}

TR.listTr {
	HEIGHT: 25px;
	BACKGROUND-COLOR: #fff;
	TEXT-ALIGN: center
}

TR.listAlternatingTr {
	HEIGHT: 25px;
	BACKGROUND-COLOR: #fffdf0;
	TEXT-ALIGN: center
}

TR.listFooterTr {
	HEIGHT: 30px;
	BACKGROUND-COLOR: #ebf4fd;
	TEXT-ALIGN: center
}

TABLE.editTable {
	WIDTH: 98%;
	BACKGROUND-COLOR: #b1ceee
}

TR.editHeaderTr {
	HEIGHT: 25px;
	BACKGROUND-COLOR: #ebf4fd
}

TD.editHeaderTd {
	PADDING-LEFT: 50px;
	FONT-WEIGHT: bold
}

TR.editTr {
	HEIGHT: 30px
}

TD.editLeftTd {
	WIDTH: 150px;
	BACKGROUND-COLOR: #fffdf0;
	TEXT-ALIGN: center
}

TD.editRightTd {
	PADDING-LEFT: 10px;
	BACKGROUND-COLOR: #fff
}

TR.editFooterTr {
	HEIGHT: 40px;
	BACKGROUND-COLOR: #ebf4fd
}

TD.editFooterTd {
	PADDING-LEFT: 150px
}
</style> 
</head>
<script type="text/javascript">
	/* var c=$("#chakan");
	var go=$("#gong");
	var jub=$("#jubao"); */

	function ju() {
		window.location = "showReport";
	}
	function cha() {

		window.location = "showCustomer.action";

	}


	function jiben() {
		window.location = "industryinformation.action";
	}

	function g() {
		window.location = "showindustry.action";
	}

	function quan() {
		window.location = "showcuslimit";
	}

	function Order() {
		window.location = "selectBydate";
	}
	function cost(){
	   window.location="orderStatistics?type";
	}
	
   function LookCost(indusid){
    window.location="orderStatistics?type";
   }
	function LOOKorder(indusid) {
	//alert("gongchangid:"+indusid);
		window.location = "selectindusOrderById?page=1&&orderstate&&startTime&&endTime&&uname";
	}
	function expand(el) {
		childObj = document.getElementById("child" + el);
		if (childObj.style.display == 'none') {
			childObj.style.display = 'block';
		} else {
			childObj.style.display = 'none';
		}
		return;
	}
	function exit(){
		 if(window.confirm("确定要退出么")){
		 	window.location="SessionDestoryAction";
		 }else{
		 }
	}
	$(document).ready(function(){
	  init();
	});
	
	
</script> 


	<!-- <FRAME name=header src="header.jsp" frameBorder=0 noResize scrolling=no> -->

	<%-- 	<font>您已登录,用户名为：${mana.managersName}</font>
		<br />
		<br />
		<br /> --%>
		
<body>	
		<c:if test="${mana.managersLimit==0}">

	<table height="100%" cellSpacing=0 cellPadding=0 width=170
		background=images/menu_bg.jpg border=0>
		<tr>
			<td vAlign="top" align="center">
				<table cellSpacing=0 cellPadding=0 width="100%" border=0>

					<tr>
						<td height=10></td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>

					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(1) href="javascript:void(0);">举报管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child1 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild  href="showReport" target=_top id="1_1">查看举报信息</A>
						</td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(2) href="javascript:void(0);">用户管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child2 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="javascript:void(0);" onclick="cha()" target=_top id="2_1">查看用户信息</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="javascript:void(0);" onclick="quan()" target=_top id="2_2">查看用户权限</A>
						</td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(3) href="javascript:void(0);">工厂管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child3 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="javascript:void(0);" onclick="jiben()" target=_top id="3_1">工厂基本信息</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="javascript:void(0);" onclick="Order()" target=_top id="3_2">工厂订单管理</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="javascript:void(0);" onclick="cost()" target=_top id="3_3">工厂成本管理</A>
						</td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>

					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(4) href="javascript:void(0);">车型管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child4 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="newBrandAction" target=_top id="4_1">增加新的品牌</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="GetAllBrandAction" target=_top id="4_2">增加新的车型</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="GetAllBrandForNewCarPic" target=_top id="4_3">增加新的车图</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="GetAllBrandForDeleteAction" target=_top id="4_4">删除车型图片</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="DeleteBrandSeriesAction" target=_top id="4_5">删除品牌系列</A>
						</td>
					</tr>
				</table>
				
				
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(5) href="javascript:void(0);">产品管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child5 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="newProductAction"  target=_top id="5_1">增加新的产品</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="GetAllProductsAction" target=_top id="5_2">增加新的款式</A>
						</td>
					</tr>
					
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>

						<td><A class=menuChild href="GetAllProAction" target=_top id="5_3">增加款式图片</A></td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="GetAllProForDelAction"  target=_top id="5_4">删除产品款式</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="GetAllProForDelPicAction" target=_top id="5_5">删除款式图片</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="showAllProducts" target=_top id="5_6">产品车标点位</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="productList" target=_top id="5_7">产品信息修改</A>
						</td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(6) href="javascript:void(0);">审核信息</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child6 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="getAllNotReviewCustomAction"  target=_top id="6_1">审核定制信息</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="getAllReviewCustomAction"  target=_top id="6_2">决定分享定制</A>
						</td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(7) href="javascript:void(0);">首页广告</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child7 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="LeadToIndexPosterImage"  target=_top id="7_1">增加广告图片</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="GetAllAdvertismentAction"  target=_top id="7_2">设置广告图片</A>
						</td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(8) href="javascript:void(0);">设计师方案</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child8 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="getAllDesignProjectAction" target=_top id="8_1">审核方案</A>
						</td>
					</tr>
				</table>
				
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(9) href="javascript:void(0);">成本管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child9 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>

					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="showCostLabel" target=_top id="9_1">查看成本标签</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><!-- <A class=menuChild
							onclick="if (confirm('确定要退出吗？')) 
							return true; 
							else return false;"
							href="http://www.865171.cn" target=_top>退出系统</A> -->
							<a class=menuChild  href="showUpdateCost" id="9_2">配置产品款式成本</a>
						</td>
					</tr>
				</table>
				
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(0) href="javascript:void(0);">系统管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child0 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>

					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="LeadtoUpdataPwdJSPAction" target=_top id="0_1">修改口令</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><!-- <A class=menuChild
							onclick="if (confirm('确定要退出吗？')) 
							return true; 
							else return false;"
							href="http://www.865171.cn" target=_top>退出系统</A> -->
							<a class=menuChild  onclick="exit()" id="0_2">退出系统</a>
						</td>
					</tr>
				</table>
			</td>
			<td width=1 bgColor=#d1e6f7></td>
		</tr>
	</table>
		</c:if>

		<c:if test="${mana.managersLimit==1}">
  

			
			<table cellSpacing=0 cellPadding=0 width=150 border=0>

					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(5) href="javascript:void(0);">工厂管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child5 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>

					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild  href="javascript:void(0);" target=_top onclick="LOOKorder('${mana.industryId}')" target=_top>查看订单</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild
							href="orderStatistics?type"
						 target=_top>成本管理</A>
						</td>
					</tr>
				</table>
				<table cellSpacing=0 cellPadding=0 width=150 border=0>
					<tr height=22>
						<td style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A
							class=menuParent onclick=expand(0) href="javascript:void(0);">系统管理</A>
						</td>
					</tr>
					<tr height=4>
						<td></td>
					</tr>
				</table>
				<table id=child0 style="DISPLAY: none" cellSpacing=0 cellPadding=0
					width=150 border=0>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><A class=menuChild href="LeadtoUpdataPwdJSPAction" target=main id="0_1">修改口令</A>
						</td>
					</tr>
					<tr height=20>
						<td align=middle width=30><IMG height=9
							src="images/menu_icon.gif" width=9>
						</td>
						<td><!-- <A class=menuChild
							onclick="if (confirm('确定要退出吗？')) 
							return true; 
							else return false;"
							href="http://www.865171.cn" target=_top>退出系统</A> -->
							<a class=menuChild  onclick="exit()">退出系统</a>
						</td>
					</tr>
					</table>
	
		</c:if>
	  <!-- <div style="margin-left: 300;margin-top: 50">
			<font size="50" color="blue">欢迎使用网贝公司管理系统</font>
		</div> -->
		</body>	
		</html> 